package com.aaa.reflect;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2022/6/14 8:39
 * @description：学生类
 * @modified By：
 * @version: 1.0
 */
public class Student  extends Person {
    private int  stuId;

   /* public Student(int stuId) {
        this.stuId = stuId;
    }*/

    public Student(int id, String name, int stuId) {
        super(id, name);
        this.stuId = stuId;
    }

   /* public Student() {
    }*/

    public int getStuId() {
        return stuId;
    }

    public void setStuId(int stuId) {
        this.stuId = stuId;
    }

    @Override
    public  void introduce(){
        System.out.println("我的学号是"+stuId);
    }

    @Override
    public int getId() {
        return super.getId();
    }
}
